include ../Makefile.inc

src = fem/ad.o \
      fem/mesh.o \
      fem/output.o \
      fem/par_distribution.o \
      fem/sparse.o \
      fem/stateproblem.o \
      fem/wmanager.o \
      integration/intpoint.o \
      integration/constpoint.o \
      integration/linpoint.o \
      integration/linbubblepoint.o \
      integration/lindiscpoint.o \
      integration/nclinpoint.o \
      integration/quadpoint.o \
      integration/quaddiscpoint.o \
      integration/quadbubblepoint.o \
      papcel/tof.o \
      papcel/nnstokes3d.o \
      main.o


targets:=$(patsubst %,../build/%,${src})

libs = -lvtkIO -lvtkFiltering -lvtkCommon -lncurses \
       -L${PETSC_LIB_DIR} ${PETSC_WITH_EXTERNAL_LIB} \
       -lmuparser -ljsoncpp

default: sifon

sifon: ${targets}
	${CXX} -o ../build/sifon ${targets} ${libs}

clean:
	rm -rf ${targets}

